import request from '@/utils/request.js'

// 发布文章
export function createArticle(data) {
	return request({
		url: '/article/create',
		method: 'POST',
		data
	})
}

// 获取文章列表
export function getArticleList() {
	return request({
		url: '/article/list',
		method: 'GET'
	})
}

// 获取文章详细
export function getArticleDetail(id) {
	return request({
		url: '/article/detail/' + id,
		method: 'GET'
	})
}